import request from '@/utils/request'

// 查询枢纽互通统计测试列表
export function listInterchangeStatTest(query) {
  return request({
    url: '/functiontest/InterchangeStatTest/list',
    method: 'get',
    params: query
  })
}

// 查询枢纽互通统计测试详细
export function getInterchangeStatTest(id) {
  return request({
    url: '/functiontest/InterchangeStatTest/' + id,
    method: 'get'
  })
}

// 新增枢纽互通统计测试
export function addInterchangeStatTest(data) {
  return request({
    url: '/functiontest/InterchangeStatTest',
    method: 'post',
    data: data
  })
}

// 修改枢纽互通统计测试
export function updateInterchangeStatTest(data) {
  return request({
    url: '/functiontest/InterchangeStatTest',
    method: 'put',
    data: data
  })
}

// 删除枢纽互通统计测试
export function delInterchangeStatTest(id) {
  return request({
    url: '/functiontest/InterchangeStatTest/' + id,
    method: 'delete'
  })
}

// 导出枢纽互通统计测试
export function exportInterchangeStatTest(query) {
  return request({
    url: '/functiontest/InterchangeStatTest/export',
    method: 'post',
    params: query,
    responseType: 'blob'
  })
}

// 导入枢纽互通统计测试数据
export function importInterchangeStatTest(data) {
  return request({
    url: '/functiontest/InterchangeStatTest/importData',
    method: 'post',
    data: data
  })
}

// 下载导入模板
export function importTemplateInterchangeStatTest() {
  return request({
    url: '/functiontest/InterchangeStatTest/importTemplate',
    method: 'get',
    responseType: 'blob'
  })
}

// 实测单位批量审核
export function fieldAuditInterchangeStatTestBatch() {
  return request({
    url: '/functiontest/InterchangeStatTest/fieldAudit/batch',
    method: 'post'
  })
}

// 业主批量审核
export function ownerAuditInterchangeStatTestBatch(data) {
  return request({
    url: '/functiontest/InterchangeStatTest/ownerAudit/batch',
    method: 'post',
    data: data
  })
}

// 中心批量审核
export function centerAuditInterchangeStatTestBatch() {
  return request({
    url: '/functiontest/InterchangeStatTest/centerAudit/batch',
    method: 'post'
  })
}

// 同步数据到正式表
export function syncToInterchangeStat() {
  return request({
    url: '/functiontest/InterchangeStatTest/syncToInterchangeStat',
    method: 'post'
  })
}
